
const env = 'production' // 'development' or 'production'

const version = 1.0

const WS_URL = {
  development: 'ws://218.241.153.28:10054',
  production: 'wss://live-socket.chinatravelacademy.com?anonymous=1'
}

const HOSTS = {
  development: 'https://www.putong.17baa.com',
  production: 'https://live.chinatravelacademy.com'
}


// apis
const API = {
  INFO_LIVE: (id, token, test) => {
    return HOSTS[env] + '/live/room/' + id + '/live?__token=' + token + '&test=' + test
  }
}

module.exports = {
  env,
  version,
  API,
  WS_URL: WS_URL[env],
  HOSTS: HOSTS[env]
}
